<div class="portlet" ng-if="!showEmpQuota">
	<table style="width:100%">
		<tr>
			<td style="text-align: right;width:45%;padding-right: 20px;">
				<span style="font-size: 17px;font-weight: bold;">定额项</span>
			</td>
			<td style="padding-left: 120px;">
				<span style="font-size: 17px;font-weight: bold;">定额值(￥)</span>
			</td>
		</tr>
		<tr ng-repeat="quotaConfig in quotaConfigList" style="height:50px;">
			<td style="text-align: right;width:45%;padding-right: 20px;padding-top: 45px;">
				<a href="javascript:void(0);" ng-click="quotaConfingModal.showEmpQuota(quotaConfig)">
					<span style="font-size: 15px;">{{quotaConfig.quotaConfigName}}</span>	
				</a>
			</td>
			<td>
				<table style="margin-top: 50px;">
					<tr ng-repeat="sonQuotaConfig in quotaConfig.sonQuotaConfigArray" style="height:50px;">
						<td style="text-align: center;width:50%;">
							<span style="font-size: 15px;">{{sonQuotaConfig.quotaConfigName}}</span>	
						</td>
						<td>
							<input style="width:120px;" type="text" class="form-control" name="quota"
											ng-model="sonQuotaConfig.quota" >
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	
	<div class="form-actions" style="text-align: center; margin-top: 100px; ">
	       <button type="button" class="btn blue" ng-click="quotaConfingModal.save();">
	           <i class="fa fa-save"></i> 保存
	       </button>
	</div>
</div>



<div class="portlet" ng-if="showEmpQuota">
     <div class="portlet-actions">
        <button class="btn blue btn-sm" ng-click="grid.goBack()"><i class="fa fa-arrow-circle-left"></i> 返回</button>
    </div>
    <form class="portlet-search-body" name="queryForm">
    <input type="text" class="form-control search-item" ng-model="empName" placeholder="员工姓名">
        <div class="search-item">
            <button class="btn btn-icon-only default"><i class="fa fa-chevron-right"></i></button>
            <button class="btn btn-sm query" ng-click="grid.query();"><i class="fa fa-search"></i> 查询</button>
            <button class="btn btn-sm reset" ng-click="grid.reset();"><i class="fa fa-eraser"></i> 重置</button>
        </div>
    </form>
    <div class="portlet-body">
        <table ed-grid="grid"  class="table table-striped table-bordered table-advance table-hover"
               data-options="url: 'salaryEmpQuota/query.do?quotaConfigId={{quotaConfigId}}', modelText: 'xx列表', form: 'queryForm', modal: 'modal'">
            <thead>
            <tr>
                <th data-options="field: 'empName'">员工姓名</th>
                <th data-options="field: 'quotaConfigName'">定额项</th>
                <th data-options="field: 'empQuota'">定额</th>
                <th data-options="field: 'remark'">备注</th>
                <th>操作</th>
            </tr>
            </thead>
        </table>
    </div>
</div>

<div ed-modal="modal" data-options="title: '员工定额配置', static: true, width: 720, defaultButton:false,onHidden:'reset'">
    <form action="#" class="form-horizontal w5c-form" w5c-form-validate novalidate name="validateForm">
        <div class="form-body">
			<div class="form-group">
				<label class="col-md-4 control-label">定额</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="empQuota" ng-model="salaryEmpQuota.empQuota" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-4 control-label">备注</label>
				<div class="col-md-4">
					<input type="text" class="form-control" name="remark" ng-model="salaryEmpQuota.remark" required>
				</div>
			</div>
        </div>
        <div class="form-actions">
            <button type="button" class="btn default" ng-click="grid.cancel();">
                <i class="fa fa-times"></i> 取消
            </button>
            <button type="button" class="btn blue" ng-click="grid.save();">
                <i class="fa fa-times"></i> 确定
            </button>
        </div>
    </form>
</div>
